<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<html>
<jsp:include page="../head.jsp"></jsp:include>
<body>
<form id='fmTbFlowProcess'  action="TbFlowProcessServlet?method=${sessionScope.tbFlowProcess==null?'add':'edit'}" method='post'>
<input type='hidden' name='flowProcessId' id='flowProcessId' value='${sessionScope.tbFlowProcess.flowProcessId }' />
<table>
<tr><td colspan=2 >&nbsp;</td></tr>
<tr>
    <td>流程</td>
    <td>
    <select name='flowId' id='flowId' >
    <option value='0' selected >无</option>
	<c:forEach items="${sessionScope.tbFlowList==null?'':sessionScope.tbFlowList}" var="tbFlow" varStatus="status">
		<option value='${tbFlow.flowId}' ${sessionScope.tbFlowProcess.flowId==tbFlow.flowId?' selected ':''} >${tbFlow.flowName}</option>
	</c:forEach>
    </select>
    </td>
</tr>
<tr>
    <td>环节</td>
    <td>
    <select name='flowNodeId' id='flowNodeId' >
    <option value='0' selected >无</option>
	<c:forEach items="${sessionScope.tbFlowNodeList==null?'':sessionScope.tbFlowNodeList}" var="tbFlowNode" varStatus="status">
		<option value='${tbFlowNode.flowNodeId}' ${sessionScope.tbFlowProcess.flowNodeId==tbFlowNode.flowNodeId?' selected ':''} >${tbFlowNode.flowNodeName}</option>
	</c:forEach>
    </select>
    </td>
</tr>
<tr>
    <td colspan='2' align='center' ><input type="submit" name="btsubmit" id="btsubmit" value="${sessionScope.tbFlowProcess==null?'添加':'修改'}" /><input type='reset' value='重置' /><input type='button' value='返回' onclick='history.go(-1);' /></td>
</tr></table>

</form><jsp:include page="../foot.jsp"></jsp:include>
</body>
</html>